/**
 * @标题：接口
 * @描述：描述一个可以操作用户联系详情的接口
 * @author: 李东峻
*  @version V1.0, 2015/1/28
 */
package com.linkage.repository.consumer;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.linkage.pojo.consumer.ContactDetail;

@Repository
public interface ContactDetailsRepository {
	
	
	
	public void addContactDetails(ContactDetail contactDetail);
	
	public void deleteContactDetails(@Param("shoppingContactId") Integer shoppingContactId);
	
	public void setdefaultContactDetails(@Param("shoppingContactId") Integer shoppingContactId);

	public void editContactDetails(ContactDetail contactDetail);
	
	public List<ContactDetail> listAllContactDetail(@Param("userId") Integer userId);

    public ContactDetail selectOneContactDetailByshoppingContactId(@Param("shoppingContactId") Integer shoppingContactId);
  
    public List<ContactDetail> selectContactDetailByUserId(@Param("userId") Integer userId);

    public ContactDetail selectDefaultContactDetail(@Param("userId") Integer userId);
}
